﻿package com.bn.NNYY;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;

public class BackgroundPic {
	int x;//绘制图片的xy坐标
	int y;
	Bitmap[] backgroundpic;//背景图片
	int i;//4张背景图片的Id
	public BackgroundPic(Bitmap[] backgroundpic)
	{
		this.x=0;
		this.y=0;
		this.backgroundpic=backgroundpic;
		i=0;
	}
	public void drawSelf(Canvas canvas,Paint paint)//绘制背景图片
	{
		canvas.drawBitmap(backgroundpic[i], 0, 0, paint);
	}

}
